<?php

namespace app\admin\validate;

use think\Validate;

class Houses extends Validate
{
    protected $failException = true;

    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require',
        'category_ids' => 'require',
        'city' => 'require',
        'introduction' => 'require',
        'address' => 'require',
        'acreage' => 'require',
        'rent_money' => 'require',
        'user_id' => 'require',
        'has_bounty' => 'require',
        'reward' => 'require',
        'weigh' => 'require',
        'image' => 'require',
        'images' => 'require',
        'files' => 'require',
        'status' => 'require',
        'create_time' => 'require',
        'rent_free' => 'require',
        'start_rent' => 'require',
        'paymethod' => 'require',
        'longitude' => 'require',
        'latitude' => 'require',
        'industry' => 'require',
        'surround' => 'require',
        'property' => 'require',
        'seal_status' => 'require',
        'update_time' => 'require',
        'check' => 'require',
        'other_tags' => 'require',
        'rent_unit' => 'require',
        'seach_area' => 'require',
        'source' => 'require',
        'online_time' => 'require',
        'down_time' => 'require',
        'from_type' => 'require',
        'prorease_period' => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];
    protected $field = [
        'name' => '房源公告标题',
        'category_ids' => '房源类型',
        'city' => '城市选择',
        'introduction' => '介绍',
        'address' => '详情地址',
        'acreage' => '面积',
        'rent_money' => '租金',
        'user_id' => '发布人',
        'has_bounty' => '是否悬赏',
        'reward' => '悬赏金额',
        'weigh' => '权重',
        'image' => '主图（列表）',
        'images' => '图册',
        'files' => '视频',
        'status' => '状态',
        'rent_free' => '免租期月',
        'start_rent' => '起租 几个月',
        'paymethod' => '支付方式',
        'longitude' => '经度',
        'latitude' => '纬度',
        'industry' => '行业',
        'surround' => '周边配套',
        'property' => '物业',
        'seal_status' => '出售状态',
        'other_tags' => '其它标签',
        'rent_unit' => '租金单位',
        'seach_area' => '地区最后一个id',
        'online_time' => '上架时间',
        'down_time' => '下架时间',
        'prorease_period' => '预租期',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add' => [],
        'edit' => [],
    ];

}
